﻿using System;
using System.Collections.Generic;
using System.Text;

namespace OPCDiffCore.Text
{
    /// <summary>
    /// Line changes
    /// </summary>
    public sealed class LineChange
    {
        public DiffType DiffType { get; set; }

        /// <summary>
        /// Line number where to add, delete, modify.
        /// </summary>
        public int x { get; internal set; }

        public int y { get; internal set; }

        /// <summary>
        /// Count how many lines are affected by the change.
        /// </summary>
        public int Range { get; internal set; }

        /// <summary>
        /// Content affected by the difference.
        /// </summary>
        private List<InternalLineChange> _changes = new List<InternalLineChange>();
        public List<InternalLineChange> Changes { get { return _changes; } }
    }
}
